#ifndef MoonWarriorsx_StartMenu_h
#define MoonWarriorsx_StartMenu_h

#include "cocos2d.h"
#include "Ship.h"
#include "UnitSprite.h"
#include "Resource.h"
#include "Kit.h"
USING_NS_CC;

class StartMenu : public Layer
{
private:
	Sprite *m_ship ;
	Size winSize;
public:
	
	virtual bool init();

	static Scene* scene();
	
	// button effect
    void onButtonEffect();
    
    // flare effct
	void flareEffect( Ref* pSender );

	// draw ship
    virtual void update(float dt);
    
    // new game
    void newGame();
	void menuCallback( Ref* pSender );
	void menuCloseCallback( Ref* pSender );

	CREATE_FUNC(StartMenu);
};
#endif